package com.anonymous.community.api.model;

import java.util.List;

public class PostListResponse {
    private List<PostItem> posts;
    private int total;
    private int page;
    private int page_size;
    private int total_pages;

    public static class PostItem {
        private int id;
        private String content;
        private String anonymous_id;
        private int view_count;
        private int like_count;
        private int comment_count;
        private String moderation_status;
        private String created_at;
        private String updated_at;
        private boolean liked;

        public int getId() {
            return id;
        }

        public String getContent() {
            return content;
        }

        public String getAnonymousId() {
            return anonymous_id;
        }

        public int getViewCount() {
            return view_count;
        }

        public int getLikeCount() {
            return like_count;
        }

        public int getCommentCount() {
            return comment_count;
        }

        public String getModerationStatus() {
            return moderation_status;
        }

        public String getCreatedAt() {
            return created_at;
        }

        public String getUpdatedAt() {
            return updated_at;
        }

        public boolean isLiked() {
            return liked;
        }

        public void setLiked(boolean liked) {
            this.liked = liked;
        }

        public void setLikeCount(int like_count) {
            this.like_count = like_count;
        }
    }

    public List<PostItem> getPosts() {
        return posts;
    }

    public int getTotal() {
        return total;
    }

    public int getPage() {
        return page;
    }

    public int getPageSize() {
        return page_size;
    }

    public int getTotalPages() {
        return total_pages;
    }
}

